package org.jeecg.modules.demo.sy.service;


import org.jeecg.modules.demo.sy.entity.*;

import java.util.Date;
import java.util.List;

public interface DeviceService {

    List<Device> findAllDevices();

    Integer findDevicesAmount();


    Integer findDevicesAmountByStatusId(int deviceStatusId);

    List<Mode1> findDevicesTypeAndAmount();

    List<Mode1> findDevicesStatusAndAmount();

    void updateDevicesStatus(int deviceId, int nowDeviceStatusId, int nowFaultTypeId);

    List<Mode2> findAreaDevicesAmountAndFaultDeviceAmount();

    void insertDeviceAreaLog(String areaName, Double faultValue, Double totalValue, Double proportion, Date insertTime);

    Integer findAreaAmount();

    List<Mode4> findExcellentAreaRank(Integer areaAmount);

    int findAreaIdByName(String areaName);
}
